package tk.mybatis;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

@RegisterMapper
public interface InsertListExtMapper<T> {
    @InsertProvider(
            type = InsertBatchProvider.class,
            method = "dynamicSQL"
    )
    int batchInsert(@Param("list") List<T> var1);

    @InsertProvider(
            type = InsertBatchProvider.class,
            method = "dynamicSQL"
    )
    int batchInsertSelective(@Param("list") List<T> var1);
}